package com.tai.line;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.content.*;

public class Line extends Activity implements OnClickListener {
    
    /** Called when the activity is first created. */

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu1);
        
        View newgameButton = findViewById(R.id.btnNewGame);
        newgameButton.setOnClickListener(this);
        View aboutButton = findViewById(R.id.btnAbout);
        aboutButton.setOnClickListener(this);
        View continueButton = findViewById(R.id.btnContinue);
        continueButton.setOnClickListener(this);
        View highscoreButton = findViewById(R.id.btnHighScore);
        highscoreButton.setOnClickListener(this);
        View exitButton = findViewById(R.id.btnExit);
        exitButton.setOnClickListener(this);
    }
    
    public void onClick(View v){
    	switch (v.getId()) {
		case R.id.btnNewGame:
			Intent n = new Intent(this,NewGame.class);
			startActivity(n);			
			break;
//		case R.id.btnContinue:
//			Intent a = new Intent(this,Continue.class);
//			startActivity(a);
//			break;
		case R.id.btnAbout:
			Intent h = new Intent(this, About.class);
			startActivity(h);
			break;
		case R.id.btnHighScore:
			Intent hc = new Intent(this, HighScore.class);
			startActivity(hc);
			break;
		case R.id.btnExit:
			finish();
			break;
		}
    }
    
}